<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
cfc('core')->checklogin();
if($_RQ['op']=='main'){
	$params=array('mid'=>$_SESSION['uid'],'type'=>array(0,1,2,8));
	$return['commission_money']=$this->sum('commission',$params,'jifen');
	$return['commission_total']=$this->count('commission',$params);
	$levels=array();
	$return['area_types']=$this->area_types;
	for($i=0;$i<$this->areasetting['area_level'];$i++){
		$level=$i+3;
		$levels[$level]=$this->count('commission',array('mid'=>$_SESSION['uid'],'type'=>$level));
	}
	$return['levels']=$levels;
	$return['list']=array();
	$return['params']=array(
		'isarea'=>$isarea,
		'isxuni'=>$isxuni,
		'level'=>3,
		'page'=>1,
	);
	$return['psize']=20;
	$return['xuniname']=$this->xuniname;
	exi($return);
}
?>